package com.bawei.mall.search.rabbit;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static com.bawei.common.rabbit.enums.QueueEnum.TEST;

/**
 * @author 蒋柏林
 * @version 1.0
 *  队列配置
 * @project mall-cloud
 * @date 2022/10/21 19:50:27
 */
@Configuration
public class QueueConfig {

    @Bean
    public Queue myQueue() {
        return new Queue(TEST.queueName(),true);
    }



}
